package com.yy.design.pattern.chain.of.responsibility.openaccount;

import com.alibaba.fastjson.JSON;
import com.yy.design.pattern.chain.of.responsibility.AbstractChainHandler;
import com.yy.design.pattern.chain.of.responsibility.ChainHandlerContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Check3Handler extends AbstractChainHandler {
    @Override
    public void handle(ChainHandlerContext handlerContext) {
        log.info("handler3 context : {}", JSON.toJSONString(handlerContext));
        invokeNextHandler(handlerContext);
    }
}
